Skip to content

GH-145273: warn when we can't find the standard library#145274

Merged
FFY00 merged 12 commits intopython:mainfrom
FFY00:gh-145273
Mar 2, 2026
Merged

GH-145273: warn when we can't find the standard library#145274
FFY00 merged 12 commits intopython:mainfrom
FFY00:gh-145273

Conversation

@FFY00
Copy link
Member

@FFY00 FFY00 commented Feb 26, 2026

Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Feb 26, 2026

The main issue with this is that we don't have a way to disable these warnings, which is resolved by GH-145277.

Signed-off-by: Filipe Laíns <lains@riseup.net>
if not stdlib_dir or not isdir(stdlib_dir):
hint = home_hint if home else f'sys.prefix is set to {prefix}, is this correct?'
warn('WARN: Could not find the standard library directory! ' + hint)
elif (not platstdlib_dir and not build_prefix) or not isdir(platstdlib_dir):
Copy link
Member Author

@FFY00 FFY00 Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the tests, but unless we skip the platstdlib_dir check when running from source, the warning will show up on make, during the pybuilddir.txt generation.

I would prefer to drop the build_prefix check, and instead add -X pathconfig_warnings=0 to the -m sysconfig --generate-posix-vars call in the makefile.

Suggested change
elif (not platstdlib_dir and not build_prefix) or not isdir(platstdlib_dir):
elif not platstdlib_dir or not isdir(platstdlib_dir):

Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Feb 27, 2026

I was thinking the symlink tests were failing on Windows because the getpath implementation of isdir/isfile didn't follow the link, but looking at the GetFileAttributesW documentation, it says it does follow symlinks.

This means the tests were failing because the symlink target did not exist, but in test_platform,PlatformTest.test_architecture_via_symlink for eg. I cannot see how that's possible? It uses test.support.PythonSymlink, which checks for it.

if os.path.lexists(self.real) and not os.path.exists(self.real):
# App symlink appears to not exist, but we want the
# real executable here anyway
self.real = _winapi.GetModuleFileName(0)

This reverts commit 3a67467.

Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Feb 27, 2026

Ah, test.support.PythonSymlink is not setting PYTHONHOME correctly. It sets it based on the executable, and it knows this is incorrect on source builds, so it sets PYTHONPATH as a workaround.

self._env["PYTHONHOME"] = os.path.dirname(self.real)
if sysconfig.is_python_build():
self._env["PYTHONPATH"] = STDLIB_DIR

I am not familiar with the build on Windows, but looking at getpath I see that on source builds it set the prefix to VPATH.

@FFY00
Copy link
Member Author

FFY00 commented Feb 27, 2026

It's weird that it needs to set PYTHONHOME though. Did getpath perhaps not resolve the executable symlink in the past?

Anyway, the CI is still finishing, but test_platform has passed, so I guess it is fixed. That's enough debugging through CI for the day 😅

Signed-off-by: Filipe Laíns <lains@riseup.net>
amber278872659683-crypto

This comment was marked as spam.

Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Mar 2, 2026

The tests look good now.

@FFY00 FFY00 enabled auto-merge (squash) March 2, 2026 18:36
@FFY00
Copy link
Member Author

FFY00 commented Mar 2, 2026

I'll remove the build_prefix check after GH-145277 is merged.

@FFY00 FFY00 merged commit 3ab39d2 into python:main Mar 2, 2026
47 checks passed
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Debian Installed with X 3.x (no tier) has failed when building commit 3ab39d2.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1244/builds/7583) and take a look at the build logs.
  4. Check if the failure is related to this commit (3ab39d2) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1244/builds/7583

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/datetimetester.py"�[0m, line �[35m7475�[0m, in �[35mtest_concurrent_initialization_subinterpreter�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b"")�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[1315 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2394�[0m, in �[35mtest_multi_init_extension_compat�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/support/__init__.py"�[0m, line �[35m3049�[0m, in �[35mwrapper�[0m
    return func(*args, **kwargs)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_api.py"�[0m, line �[35m938�[0m, in �[35mtest_display_preserved_exception�[0m
    �[31mself.assertEqual�[0m�[1;31m(stderr, dedent(f"""\�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31mTraceback (most recent call last):�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
    ...<18 lines>...
        �[1;31mRuntimeError: uh-oh!�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31m"""))�[0m
        �[1;31m^^^^^�[0m
�[1;35mAssertionError�[0m: �[35m'WARN: Could not find the platform standar[939 chars]h!\n' != 'Traceback (most recent call last):\n  Fil[769 chars]h!\n'
- WARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
  Traceback (most recent call last):
    File "/tmp/test_python_59d_k399/tmp9_m98wlo/script.py", line 10, in <module>
      interp.exec(script)
      ~~~~~~~~~~~^^^^^^^^
    File "/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/concurrent/interpreters/__init__.py", line 217, in exec
      raise ExecutionFailed(excinfo)
  concurrent.interpreters.ExecutionFailed: RuntimeError: uh-oh!
  
  Uncaught in the interpreter:
  
  Traceback (most recent call last):
    File "/tmp/test_python_59d_k399/tmp9_m98wlo/script.py", line 6, in script
      spam.eggs()
      ~~~~~~~~~^^
    File "/tmp/test_python_59d_k399/tmp9_m98wlo/spam.py", line 6, in eggs
      ham()
      ~~~^^
    File "/tmp/test_python_59d_k399/tmp9_m98wlo/spam.py", line 3, in ham
      raise RuntimeError('uh-oh!')
  RuntimeError: uh-oh!
�[0m


TracebackTests.test_exec_failure) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2380�[0m, in �[35mtest_single_init_extension_compat�[0m
    �[31mself.check_incompatible_fresh�[0m�[1;31m(module, isolated=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2338�[0m, in �[35mcheck_incompatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2466�[0m, in �[35mtest_python_compat�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m29�[0m, in �[35msubTest�[0m
    yield ctx
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m158�[0m, in �[35mtest_sys_path_0�[0m
    out = self.run_python(argv, cwd=cwd)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m109�[0m, in �[35mrun_python�[0m
    assert �[1;31mproc.stderr == '' or proc.returncode != 0�[0m, proc.stderr
           �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mWARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/support/__init__.py"�[0m, line �[35m3049�[0m, in �[35mwrapper�[0m
    return func(*args, **kwargs)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_api.py"�[0m, line �[35m938�[0m, in �[35mtest_display_preserved_exception�[0m
    �[31mself.assertEqual�[0m�[1;31m(stderr, dedent(f"""\�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31mTraceback (most recent call last):�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
    ...<18 lines>...
        �[1;31mRuntimeError: uh-oh!�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31m"""))�[0m
        �[1;31m^^^^^�[0m
�[1;35mAssertionError�[0m: �[35m'WARN: Could not find the platform standar[939 chars]h!\n' != 'Traceback (most recent call last):\n  Fil[769 chars]h!\n'
- WARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
  Traceback (most recent call last):
    File "/tmp/test_python_ykrmgwg9/tmpw67f80o1/script.py", line 10, in <module>
      interp.exec(script)
      ~~~~~~~~~~~^^^^^^^^
    File "/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/concurrent/interpreters/__init__.py", line 217, in exec
      raise ExecutionFailed(excinfo)
  concurrent.interpreters.ExecutionFailed: RuntimeError: uh-oh!
  
  Uncaught in the interpreter:
  
  Traceback (most recent call last):
    File "/tmp/test_python_ykrmgwg9/tmpw67f80o1/script.py", line 6, in script
      spam.eggs()
      ~~~~~~~~~^^
    File "/tmp/test_python_ykrmgwg9/tmpw67f80o1/spam.py", line 6, in eggs
      ham()
      ~~~^^
    File "/tmp/test_python_ykrmgwg9/tmpw67f80o1/spam.py", line 3, in ham
      raise RuntimeError('uh-oh!')
  RuntimeError: uh-oh!
�[0m


TracebackTests.test_broken_submodule) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2510�[0m, in �[35mtest_isolated_config�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True, isolated=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


TracebackTests.test_broken_parent) ... �[32mok�[0m


TracebackTests.test_broken_parent_from) ... �[32mok�[0m


TracebackTests.test_nonexistent_module_nested) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2378�[0m, in �[35mtest_single_init_extension_compat�[0m
    �[31mself.check_incompatible_fresh�[0m�[1;31m(module)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2338�[0m, in �[35mcheck_incompatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


TracebackTests.test_syntax_error) ... �[32mok�[0m


TracebackTests.test_exec_failure_nested) ... �[32mok�[0m


TracebackTests.test_broken_from) ... �[32mok�[0m


TracebackTests.test_unencodable_filename) ... �[32mok�[0m


TracebackTests.test_import_bug) ... �[32mok�[0m


TracebackTests.test_nonexistent_module) ... �[32mok�[0m

FFY00 added a commit to FFY00/cpython that referenced this pull request Mar 2, 2026
Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00
Copy link
Member Author

FFY00 commented Mar 2, 2026

I was able to reproduce the buildbot failure locally. I'm working on a fix.

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Debian Installed with X 3.x (no tier) has failed when building commit 3ab39d2.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1244/builds/7584) and take a look at the build logs.
  4. Check if the failure is related to this commit (3ab39d2) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1244/builds/7584

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/datetimetester.py"�[0m, line �[35m7475�[0m, in �[35mtest_concurrent_initialization_subinterpreter�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b"")�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[1315 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2394�[0m, in �[35mtest_multi_init_extension_compat�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


TracebackTests.test_exec_failure) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2380�[0m, in �[35mtest_single_init_extension_compat�[0m
    �[31mself.check_incompatible_fresh�[0m�[1;31m(module, isolated=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2338�[0m, in �[35mcheck_incompatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2466�[0m, in �[35mtest_python_compat�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m29�[0m, in �[35msubTest�[0m
    yield ctx
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m158�[0m, in �[35mtest_sys_path_0�[0m
    out = self.run_python(argv, cwd=cwd)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_lifecycle.py"�[0m, line �[35m109�[0m, in �[35mrun_python�[0m
    assert �[1;31mproc.stderr == '' or proc.returncode != 0�[0m, proc.stderr
           �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mWARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
�[0m


TracebackTests.test_broken_submodule) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2510�[0m, in �[35mtest_isolated_config�[0m
    �[31mself.check_compatible_fresh�[0m�[1;31m(module, strict=True, isolated=True)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2313�[0m, in �[35mcheck_compatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


TracebackTests.test_broken_parent) ... �[32mok�[0m


TracebackTests.test_broken_parent_from) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/support/__init__.py"�[0m, line �[35m3049�[0m, in �[35mwrapper�[0m
    return func(*args, **kwargs)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_api.py"�[0m, line �[35m938�[0m, in �[35mtest_display_preserved_exception�[0m
    �[31mself.assertEqual�[0m�[1;31m(stderr, dedent(f"""\�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31mTraceback (most recent call last):�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
    ...<18 lines>...
        �[1;31mRuntimeError: uh-oh!�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31m"""))�[0m
        �[1;31m^^^^^�[0m
�[1;35mAssertionError�[0m: �[35m'WARN: Could not find the platform standar[939 chars]h!\n' != 'Traceback (most recent call last):\n  Fil[769 chars]h!\n'
- WARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
  Traceback (most recent call last):
    File "/tmp/test_python_qv5ah4vx/tmpvisefb29/script.py", line 10, in <module>
      interp.exec(script)
      ~~~~~~~~~~~^^^^^^^^
    File "/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/concurrent/interpreters/__init__.py", line 217, in exec
      raise ExecutionFailed(excinfo)
  concurrent.interpreters.ExecutionFailed: RuntimeError: uh-oh!
  
  Uncaught in the interpreter:
  
  Traceback (most recent call last):
    File "/tmp/test_python_qv5ah4vx/tmpvisefb29/script.py", line 6, in script
      spam.eggs()
      ~~~~~~~~~^^
    File "/tmp/test_python_qv5ah4vx/tmpvisefb29/spam.py", line 6, in eggs
      ham()
      ~~~^^
    File "/tmp/test_python_qv5ah4vx/tmpvisefb29/spam.py", line 3, in ham
      raise RuntimeError('uh-oh!')
  RuntimeError: uh-oh!
�[0m


TracebackTests.test_nonexistent_module_nested) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2378�[0m, in �[35mtest_single_init_extension_compat�[0m
    �[31mself.check_incompatible_fresh�[0m�[1;31m(module)�[0m
    �[31m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^�[0m
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_import/__init__.py"�[0m, line �[35m2338�[0m, in �[35mcheck_incompatible_fresh�[0m
    �[31mself.assertEqual�[0m�[1;31m(err, b'')�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^�[0m
�[1;35mAssertionError�[0m: �[35mb'WARN: Could not find the platform standar[125 chars]t?\n' != b''�[0m


TracebackTests.test_syntax_error) ... �[32mok�[0m


TracebackTests.test_exec_failure_nested) ... �[32mok�[0m


TracebackTests.test_broken_from) ... �[32mok�[0m


TracebackTests.test_unencodable_filename) ... �[32mok�[0m


TracebackTests.test_import_bug) ... �[32mok�[0m


TracebackTests.test_nonexistent_module) ... �[32mok�[0m


Traceback (most recent call last):
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/support/__init__.py"�[0m, line �[35m3049�[0m, in �[35mwrapper�[0m
    return func(*args, **kwargs)
  File �[35m"/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/test/test_interpreters/test_api.py"�[0m, line �[35m938�[0m, in �[35mtest_display_preserved_exception�[0m
    �[31mself.assertEqual�[0m�[1;31m(stderr, dedent(f"""\�[0m
    �[31m~~~~~~~~~~~~~~~~�[0m�[1;31m^^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31mTraceback (most recent call last):�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
    ...<18 lines>...
        �[1;31mRuntimeError: uh-oh!�[0m
        �[1;31m^^^^^^^^^^^^^^^^^^^^�[0m
        �[1;31m"""))�[0m
        �[1;31m^^^^^�[0m
�[1;35mAssertionError�[0m: �[35m'WARN: Could not find the platform standar[939 chars]h!\n' != 'Traceback (most recent call last):\n  Fil[769 chars]h!\n'
- WARN: Could not find the platform standard library directory! sys.exec_prefix is set to /buildbot/buildarea/3.x.ware-debian-x86.installed/build/target, is this correct?
  Traceback (most recent call last):
    File "/tmp/test_python_ckbktvie/tmp8u5u3u2d/script.py", line 10, in <module>
      interp.exec(script)
      ~~~~~~~~~~~^^^^^^^^
    File "/buildbot/buildarea/3.x.ware-debian-x86.installed/build/target/lib/python3.15/concurrent/interpreters/__init__.py", line 217, in exec
      raise ExecutionFailed(excinfo)
  concurrent.interpreters.ExecutionFailed: RuntimeError: uh-oh!
  
  Uncaught in the interpreter:
  
  Traceback (most recent call last):
    File "/tmp/test_python_ckbktvie/tmp8u5u3u2d/script.py", line 6, in script
      spam.eggs()
      ~~~~~~~~~^^
    File "/tmp/test_python_ckbktvie/tmp8u5u3u2d/spam.py", line 6, in eggs
      ham()
      ~~~^^
    File "/tmp/test_python_ckbktvie/tmp8u5u3u2d/spam.py", line 3, in ham
      raise RuntimeError('uh-oh!')
  RuntimeError: uh-oh!
�[0m

@FFY00
Copy link
Member Author

FFY00 commented Mar 2, 2026

GH-145442 should fix the buildbot failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants